package com.arouter.demo.baselib.router.service;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.arouter.demo.baselib.router.RouterPath;
import com.arouter.demo.baselib.router.service.HomeService;

/**
 * desc:
 * 2018-06-04 10:44
 */
@Route(path = RouterPath.HOME_SERVICE)
public class HomeServiceImpl implements HomeService {
    @Override
    public void jumpHomeActivity(String name, int age) {
        ARouter.getInstance().build(RouterPath.HOME_ACTIVITY)
               .withString("name",name)
               .withInt("age",age)
               .navigation();
    }

    @Override
    public void init(Context context) {

    }
}
